<?php

require 'header.php';

?>
      <div class="middle">
		<div class="simple-container-left" id="page:main-container">
			<div class="container" id="page:container">
				<div class="main">
					<div class="content-container">
						<div class="content" id="content">
							<div class="content-header">
								<table class="grid-header" cellspacing="0" border="0" >
									<tbody>
										<tr>
											<td width="60%"><h3 class="icon-head head-customer">Manage Loan</h3></td>
                                            <td ><h3 class="icon-head head-user">ID : 20080001 &nbsp; Name : Jundie Chan</h3></td>
										</tr>
									</tbody>
								</table>
							</div>
							<form name="form1" id="form1" action="/" method="post">
							<div class="entry-edit">
                                <br />
								<h4 class="icon-head head-edit-form fieldset-legend">Edit Collateral Items</h4>
									<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >
									<tbody>
								        <tr>
         							            <td>
                            	        <table width="100%" cellspacing="0" border="0">
										<tbody>
										<tr>
										    <td width="50%">
								    		        <table width="100%" cellspacing="5" border="0">
										               <tbody>
															<tr>
																<td>Collateral ID<span class="required">*</span></td>
																<td>1</td>
															</tr>
															<tr>
																<td>Borrower ID <span class="required">*</span></td>
																<td><input name="borrower_id" value="20080001" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Item Description <span class="required">*</span></td>
																<td><textarea name="item_description" cols="30" rows="3">Sports car 1990</textarea></td>
															</tr>
															<tr>
																<td>Manufacturer</td>
																<td><input name="manufacturer" value="toyota" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Model# <span class="required">*</span></td>
																<td><input name="model_no" value="GT150" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Serial# <span class="required">*</span></td>
																<td><input name="serial_no" value="888" class="required-entry required-entry input-text" type="text"></td>
															</tr>
																<tr>
																<td>Date of Purchase <span class="required">*</span></td>
																<td><input name="purchase_date" value="1992" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Collateral Status <span class="required">*</span></td>
																<td>
																	<select name="collateral_status" class="required-entry required-entry select" type="select">
																	<option value="1">Borrower in Possession</option>
																	<option value="2">Borrower Not In Posession</option>
																	<option value="1">Repossessed</option>
																	<option value="2">For Sale</option>
                                                                                                                                        <option value="2">Sold</option>
																	</select>
																</td>
															</tr>

												</tbody>
											</table>
                                              </td>
										     <td width="50%">
											 <table width="100%" cellspacing="5" border="0">
                                                            <tr>
                                                                <td><br  /><br /><br />Picture </td>
																<td><img src="img/collateral.jpg" width="130" height="120" /><br />
                                                                <input name="photo" value="" class="required-entry required-entry input-text" type="file"></td>
															</tr>
															<tr>
																<td>For Sale Price <span class="required">*</span></td>
																<td><input name="for_sale_price" value="200000" class="required-entry required-entry input-text" type="text"></td>
															</tr>
                                                            <tr>
																<td>Sale Date <span class="required">*</span></td>
																<td><input name="for_sale_price" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Sold Price </td>
																<td><input name="sold_price" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
                                                            <tr>
																<td>Sold Date <span class="required">*</span></td>
																<td><input name="for_sale_price" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Amount returned to borrower <span class="required">*</span></td>
																<td><input name="amount_returned" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Amount kept for repayment <span class="required">*</span></td>
																<td>
																	<input name="amount_kept" value="" class="required-entry required-entry input-text" type="text">
																</td>
															</tr>


                                                                                           </table>
										     </td>
										</tr>

										</tbody>
        	                                                         </table>
	                                                                    </td>
	                                                                    </tr>
	                                                                    <tr align="center">
                                            <td><button type="button" class="scalable back" onclick="setLocation('add_borrower_wizard.php')" style=""><span>Reset</span></button>
                                                <button type="button" class="scalable cancel" onclick="setLocation('loan.php')" style=""><span>Cancel</span></button>
                                                <button type="button" class="scalable save" onclick="setLocation('loan.php')" style=""><span>Save</span></button>
                                            </td>
                                        </tr>

										</tbody>
									</table>
									&nbsp;
							</div>


							</form>
						</div>
					</div>
					
					<div class="section-menu" id="page:left">
						<h3>Loan Center</h3>
						<ul id="loan_info_tabs" class="tabs">
                            <li>
						        <a href="collateral_view.php" title="View Loans" class="tab-item-link active">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Collateral Items</span>
						        </a>
						    </li>
						</ul>
						<div class="bottom"></div>
					</div>
              	</div>
			</div>
		</div>
	</div>

<?php

require 'footer.php';

?>